package cn.gyouzhe.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * 卖家实体
 *
 * @author wangchuan
 * @datetime 2018/2/12 22:02
 */
@Getter
@Setter
@NoArgsConstructor
@ToString
public class Seller {
    private int id;
    /**
     * 卖家ID
     */
    private String sellerId;
    /**
     * 店铺名称
     */
    private String shopName;

    private Seller(String sellerId, String shopName) {
        this.sellerId = sellerId;
        this.shopName = shopName;
    }

    private Seller(int id, String sellerId, String shopName) {
        this.id = id;
        this.sellerId = sellerId;
        this.shopName = shopName;
    }

    public static Seller of(String sellerId, String shopName) {
        return new Seller(sellerId, shopName);
    }

    public static Seller of(int id, String sellerId, String shopName) {
        return new Seller(id, sellerId, shopName);
    }
}
